package com.houweishi.module.typeconfig.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.houweishi.common.annotation.Excel;
import com.houweishi.common.core.domain.BaseEntity;

/**
 * 垃圾分类-配置对象 type_config
 * 
 * @author houweishi
 * @date 2023-03-10
 */
public class TypeConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 运营商ID */
    @Excel(name = "运营商ID")
    private Long agentId;

    /** 类别编号 */
    @Excel(name = "类别编号")
    private String code;

    /** 类型名称 */
    @Excel(name = "类型名称")
    private String name;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 分类 */
    @Excel(name = "分类")
    private String type;

    /** 价格（分） */
    @Excel(name = "价格", readConverterExp = "分=")
    private Long price;

    /** 售卖价 */
    @Excel(name = "售卖价")
    private Long salePrice;

    /** 保洁员回收价（元） */
    @Excel(name = "保洁员回收价", readConverterExp = "元=")
    private Long cleanerPrice;

    /** 图标 */
    @Excel(name = "图标")
    private String icon;

    /** 串口编号 */
    @Excel(name = "串口编号")
    private Long comNumber;

    /** 审核阈值 */
    @Excel(name = "审核阈值")
    private Long auditThreshold;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdateTime;

    /** 最低投递值 */
    @Excel(name = "最低投递值")
    private Long minPostingValue;

    /** 每日计分数量 */
    @Excel(name = "每日计分数量")
    private Long dailyPostingCount;

    /** 类型时间段开启时间 */
    @Excel(name = "类型时间段开启时间")
    private String typeOpenTimeArea;

    /** 背景颜色 */
    @Excel(name = "背景颜色")
    private String backgroundColor;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setAgentId(Long agentId) 
    {
        this.agentId = agentId;
    }

    public Long getAgentId() 
    {
        return agentId;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setSalePrice(Long salePrice) 
    {
        this.salePrice = salePrice;
    }

    public Long getSalePrice() 
    {
        return salePrice;
    }
    public void setCleanerPrice(Long cleanerPrice) 
    {
        this.cleanerPrice = cleanerPrice;
    }

    public Long getCleanerPrice() 
    {
        return cleanerPrice;
    }
    public void setIcon(String icon) 
    {
        this.icon = icon;
    }

    public String getIcon() 
    {
        return icon;
    }
    public void setComNumber(Long comNumber) 
    {
        this.comNumber = comNumber;
    }

    public Long getComNumber() 
    {
        return comNumber;
    }
    public void setAuditThreshold(Long auditThreshold) 
    {
        this.auditThreshold = auditThreshold;
    }

    public Long getAuditThreshold() 
    {
        return auditThreshold;
    }
    public void setLastUpdateTime(Date lastUpdateTime) 
    {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Date getLastUpdateTime() 
    {
        return lastUpdateTime;
    }
    public void setMinPostingValue(Long minPostingValue) 
    {
        this.minPostingValue = minPostingValue;
    }

    public Long getMinPostingValue() 
    {
        return minPostingValue;
    }
    public void setDailyPostingCount(Long dailyPostingCount) 
    {
        this.dailyPostingCount = dailyPostingCount;
    }

    public Long getDailyPostingCount() 
    {
        return dailyPostingCount;
    }
    public void setTypeOpenTimeArea(String typeOpenTimeArea) 
    {
        this.typeOpenTimeArea = typeOpenTimeArea;
    }

    public String getTypeOpenTimeArea() 
    {
        return typeOpenTimeArea;
    }
    public void setBackgroundColor(String backgroundColor) 
    {
        this.backgroundColor = backgroundColor;
    }

    public String getBackgroundColor() 
    {
        return backgroundColor;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("agentId", getAgentId())
            .append("code", getCode())
            .append("name", getName())
            .append("unit", getUnit())
            .append("type", getType())
            .append("price", getPrice())
            .append("salePrice", getSalePrice())
            .append("cleanerPrice", getCleanerPrice())
            .append("icon", getIcon())
            .append("comNumber", getComNumber())
            .append("auditThreshold", getAuditThreshold())
            .append("lastUpdateTime", getLastUpdateTime())
            .append("minPostingValue", getMinPostingValue())
            .append("dailyPostingCount", getDailyPostingCount())
            .append("typeOpenTimeArea", getTypeOpenTimeArea())
            .append("backgroundColor", getBackgroundColor())
            .toString();
    }
}
